/**
 * @author 鍚存倍
 * @since 2022/10/13
 * 12:41
 */
package com.windgo.controller.admin;

import com.windgo.bean.MarketCollect;
import com.windgo.bean.common.BasePageInfo;
import com.windgo.bean.common.BaseRespVo;
import com.windgo.bean.common.CommonData;
import com.windgo.service.CollectService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/collect")
public class CollectController {
    @Autowired
    CollectService collectService;
    @RequestMapping(value = "list")
    @RequiresPermissions("perms[admin:collect:list]")
    public BaseRespVo list(BasePageInfo basePageInfo,Integer userId,Integer valueId){
        CommonData<MarketCollect> data = collectService.search(basePageInfo, userId, valueId);
        return BaseRespVo.ok(data);
    }
}
